package cn.tedu.pet.passport.security;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
@Getter
public class AdminDetails extends User {


    private Long id;
    private String avatar;

    public AdminDetails(Long id, String username, String password,String avatar, boolean enabled, Collection<? extends GrantedAuthority> authorities) {
        super(username, password,enabled,
                true, true, true,
                authorities);
        this.id=id;
        this.avatar = avatar;
    }
}
